<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css" href="css/student.css">

</head>

<body>

	<jsp:include page="head.jsp"></jsp:include>
	<div>
		<div id="left">
			<ul>
				<li>
					<h2>
						<a href="<%=basePath%>message.action?id=<s:property value="#session['u']" />">查看个人信息</a>
					</h2>
				</li>
				<li>
					<h2>
						<a href="<%=basePath%>getMessage.action?id=<s:property value="#session['u']" />">修改个人信息</a>
					</h2>
				</li>
				<li>
					<h2>
						<a href="<%=basePath%>studScore.action?id=<s:property value="#session['u']" />">查看个人成绩</a>
					</h2>
				</li>
				<li>
					<h2>
						<a href="<%=basePath%>stu_message_change.jsp" />修改密码</a>
					</h2>
				</li>
			</ul>
		</div>
		<div id="main">
			<h4>当前位置 ****** 个人信息查询</h4>

			<s:property value="#request.meg"/>
			<s:if test="#request['stu']!=null">
				<form action="changeMessage.action" method="post">
					<input type="hidden" name="id" value="<s:property value="#session['u']" />" />
					<s:iterator value="#request['stu']" id="student">
						<li>电子邮箱：<input type="text" name=email value="<s:property value="#student.email" />" />
						</li>
						<li>联系方式：<input type="text" name=phone value="<s:property value="#student.phone" />" />
						</li>
					</s:iterator>
					</br></br>
					<input type="submit" value="修改" />&nbsp;&nbsp;&nbsp; <input type="reset" value="重 置" />
				</form>
			</s:if>
		</div>
		<hr width=100% size=5 color=#2323fe style="FILTER: alpha(opacity=100,finishopacity=0,style=3)">


	</div>
</body>
</html>
